package com.zrrd.learn.chapter08面向对象.car;

/**
 * 汽车测试类
 *
 * @author wrn
 * @version 1.0
 * @date 2023/7/27 14:18
 */

public class Testcar {

    public static void main(String[] args) {

        car c1 = new car("红色", "福特", "野马");
        car c2 = new car("蓝色", "丰田", "普锐斯");
        car c3 = new car("绿色", "大众", "高尔夫");

        Dcar d = new Dcar("白色", "丰田", "普锐斯",true);


        c1.show();
        c2.show();
        c3.show();
        c1.run();
        d.show();
        d.run();
    }

}
